package bean;

public class SignUp {
    private String signUpNo;//自动生成
    
    private String userName;
    private String name;
    private String id;
    private String phone;

    private String routeNo;
    private String startPoint;
    private String endPoint;
    private int days;
    private String attraction;

    private String shiftNo;
    private String departureDate;
    private String tourismStandard;//('豪华','普通','经济')
    private int quote;
    private float discountRate;

    private float cost;

    public void TouristSet(person tourist ){
        setUserName(tourist.getUserName());
        setName(tourist.getName());
        setId(tourist.getId());
        setPhone(tourist.getPhone());
    }
    public void tourRouteSet(TourRoute tr){
        setRouteNo(tr.getRouteNo());
        setStartPoint(tr.getStartPoint());
        setEndPoint(tr.getEndPoint());
        setDays(tr.getDays());
        setAttraction(tr.getAttraction());
    }
    public void tourShiftSet(TourShift ts){
        setShiftNo(ts.getShiftNo());
        setDepartureDate(ts.getDepartureDate());
        setTourismStandard(ts.getTourismStandard());
        setQuote(ts.getQuote());
        setDiscountRate(ts.getDiscountRate());
        float cost = ts.getQuote()*ts.getDiscountRate();
        setCost(cost);
    }

    public String getSignUpNo() {
        return signUpNo;
    }
    public void setSignUpNo(String signUpNo) {
        this.signUpNo = signUpNo;
    }
    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getPhone() {
        return phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getRouteNo() {
        return routeNo;
    }
    public void setRouteNo(String routeNo) {
        this.routeNo = routeNo;
    }
    public String getStartPoint() {
        return startPoint;
    }
    public void setStartPoint(String startPoint) {
        this.startPoint = startPoint;
    }
    public String getEndPoint() {
        return endPoint;
    }
    public void setEndPoint(String endPoint) {
        this.endPoint = endPoint;
    }
    public int getDays() {
        return days;
    }
    public void setDays(int days) {
        this.days = days;
    }
    public String getAttraction() {
        return attraction;
    }
    public void setAttraction(String attraction) {
        this.attraction = attraction;
    }
    public String getShiftNo() {
        return shiftNo;
    }
    public void setShiftNo(String shiftNo) {
        this.shiftNo = shiftNo;
    }
    public void setQuote(int quote) {
        this.quote = quote;
    }
    public void setDepartureDate(String departureDate) {
        this.departureDate = departureDate;
    }
    public String getDepartureDate() {
        return departureDate;
    }
    public String getTourismStandard() {
        return tourismStandard;
    }
    public void setTourismStandard(String tourismStandard) {
        this.tourismStandard = tourismStandard;
    }
    public int getQuote() {
        return quote;
    }
    public void setDiscountRate(float discountRate) {
        this.discountRate = discountRate;
    }
    public float getDiscountRate() {
        return discountRate;
    }
    public float getCost() {
        return cost;
    }
    public void setCost(float cost) {
        this.cost = cost;
    }
}
